package com.xiaoxie.entity;

public class BaseContext {

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentAccount(String id) {
        threadLocal.set(id);
    }

    public static String getCurrentAccount() {
        return threadLocal.get();
    }

    public static void removeCurrentAccount() {
        threadLocal.remove();
    }

}